package Java练习.面向对象综合练习.基础;

public class Cat {
    private String brand;
    private int prize;
    private String colour;
    //构造空参
    public Cat(){};
    //构造方法

    public Cat(String brand, int prize, String colour) {
        this.brand = brand;
        this.prize = prize;
        this.colour = colour;
    }
    //get和set方法

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public int getPrize() {
        return prize;
    }

    public void setPrize(int prize) {
        this.prize = prize;
    }

    public String getColour() {
        return colour;
    }

    public void setColour(String colour) {
        this.colour = colour;
    }
}
